/*
 * @Author: windys
 * @Description: 
 * @Date: 2022-02-11 16:10:25
 */
import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
const routerHas = createWebHashHistory()
const router = createRouter({
    history: routerHas,
    routes: [
        {
            path: '/',
            name: '/',
            redirect:'/live'
        },
        {
            path: '/login',
            name: 'login',
            component: () => import('../pages/login/index.vue')
        },
        {
            path: '/my',
            name: 'my',
            meta:{
                title:'个人中心'
            },
            component: () => import('../pages/my/index.vue')
        },
        {
            path: '/set',
            name: 'set',
            component: () => import('../pages/my/pages/set.vue')
        },
        {
            path: '/code',
            name: 'code',
            component: () => import('../pages/static/code.vue')
        },
        {
            path: '/wxBindLogin',
            name: 'wxBindLogin',
            component: () => import('../pages/static/wxBindLogin.vue')
        },
        {
            path: '/crouse',
            name: 'crouse',
            meta: {
                title: '课程',
                keepAlive: true
            },
            component: () => import('../pages/crouse/index.vue')
        },
        {
            path: '/article',
            name: 'article',
            meta: {
                title: '热点资讯',
                keepAlive: true
            },
            component: () => import('../pages/article/index.vue')
        },
        {
            path: '/live',
            name: 'live',
            meta: {
                title: '精彩直播',
            },
            component: () => import('../pages/live/index.vue')
        },
        {
            path: '/lookback',
            name: 'lookback',
            meta: {
                title: '直播回放',
            },
            component: () => import('../pages/room/pages/lookBack.vue')
        },
        {
            path: '/invite',
            name: 'invite',
            meta: {
                title: '邀请注册'
            },
            component: () => import('../pages/my/pages/invite.vue')
        },
        {
            path: '/recharge',
            name: 'recharge',
            meta: {
                title: '充值中心'
            },
            component: () => import('../pages/my/pages/recharge.vue')
        },
        {
            path: '/liveroom',
            name: 'liveroom',
            meta: {
                title: '直播间'
            },
            component: () => import('../pages/room/index.vue')
        },
        {
            path: '/ques',
            name: 'ques',
            meta: {
                title: '提问',
                keepAlive: true
            },
            component: () => import('../pages/ques/index.vue')
        },
        {
            path: '/quesdetail',
            name: 'quesdetail',
            meta: {
                title: '提问详情'
            },
            component: () => import('../pages/ques/pages/detail.vue')
        },
        {
            path: '/editPwd',
            name: 'editPwd',
            meta: {
                title: '密码修改'
            },
            component: () => import('../pages/my/pages/editPwd.vue')
        },
        {
            path: '/userData',
            name: 'userData',
            meta: {
                title: '用户资料'
            },
            component: () => import('../pages/my/pages/userInfo.vue')
        },
        {
            path: '/articledetail',
            name: 'articledetail',
            meta: {
                title: '用户资料'
            },
            component: () => import('../pages/article/pages/detail.vue')
        },
        {
            path: '/coupon',
            name: 'coupon',
            meta: {
                title: '优惠券'
            },
            component: () => import('../pages/coupon/index.vue')
        },

        {
            path: '/crousedetail',
            name: 'crousedetail',
            meta: {
                title: '课程详情',
            },
            component: () => import('../pages/crouse/pages/index.vue')
        },



        {
            path: '/putQuestTo',
            name: 'putQuestTo',
            meta: {
                title: '提问',
            },
            component: () => import('../pages/ques/pages/putQuestTo.vue')
        },


        {
            path: '/consumption',
            name: 'consumption',
            meta: {
                title: '账户明细',
            },
            component: () => import('../pages/consumption/index.vue')
        },


        {
            path: '/wencai',
            name: 'wencai',
            meta: {
                title: '问财',
            },
            component: () => import('../pages/my/pages/wclink.vue')
        },


        {
            path: '/mall',
            name: 'mall',
            meta: {
                title: '积分商城',
            },
            component: () => import('../pages/mall/index.vue')
        },
        {
            path: '/addrList',
            name: 'addrList',
            meta: {
                title: '我的地址',
            },
            component: () => import('../pages/mall/page/addrList.vue')
        },
        {
            path: '/mallList',
            name: 'mallList',
            meta: {
                title: '商品选择',
                keepAlive:true
            },
            component: () => import('../pages/mall/page/mallList.vue')
        },
        {
            path: '/mallDetail',
            name: 'mallDetail',
            meta: {
                title: '商品详情',
            },
            component: () => import('../pages/mall/page/mallDetail.vue')
        },
        {
            path: '/mallRes',
            name: 'mallRes',
            meta: {
                title: '支付结果',
            },
            component: () => import('../pages/mall/page/mallRes.vue')
        },
        {
            path: '/game',
            name: 'game',
            meta: {
                title: '模拟炒股比赛',
            },
            component: () => import('../pages/game/index.vue')
        },
        {
            path: '/gameDetail',
            name: 'gameDetail',
            meta: {
                title: '比赛详情',
            },
            component: () => import('../pages/game/page/gameDetail.vue')
        },
        {
            path: '/feedback',
            name: 'feedback',
            meta: {
                title: '意见反馈',
            },
            component: () => import('../pages/my/pages/feedback.vue')
        },

    ]
})
export default router

